<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		//延迟多久执行动作
		var words = 'hello world';
		function say(word1,word2){
			var now = new Date();
			console.log(now+ word1+word2);	
		}
		onload = function(){
			//setTimeout(say,3*1000,'hello',' world8')
			//每间隔多久执行动作
			setInterval(say,1000,'hello',' world8');
		}
	</script>
</html>
